/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-05-16 16:44:44
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-16 16:55:35
 */
import request from '@/utils/request'
import { GET_ARTICLE_LIST } from '@/store/actionTypes'
export const actionArticleList = (params) => {
  return async (dispatch) => {
    console.log(params, 882222)
    const res = await request({
      url: '/mp/articles',
      params,
    })
    dispatch({ type: GET_ARTICLE_LIST, payload: res.data.results })
  }
}
